package com.jeesite.modules.fl.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;

@Table(name = "fl_clinic_user", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "id", isPK = true),
        @Column(name = "clinic", attrName = "clinic.id", label = "诊所"),       
        @Column(name = "users", attrName = "users", label = "用户"),
        @Column(includeEntity = DataEntity.class),
	},joinTable = {
        @JoinTable(type = Type.LEFT_JOIN, entity = Clinic.class, alias = "c", on = "c.id = a.clinic", attrName = "clinic", columns = {@Column(name = "name", label = "名称")}),
	}
)
public class ClinicUser extends DataEntity<ClinicUser>{
	private static final long serialVersionUID = 1L;
	
	private Clinic clinic;
	private String users;
	
	public ClinicUser(){
		super();
	}
	
	public ClinicUser(String id){
		super(id);
	}

	public Clinic getClinic() {
		return clinic;
	}

	public void setClinic(Clinic clinic) {
		this.clinic = clinic;
	}

	public String getUsers() {
		return users;
	}

	public void setUsers(String users) {
		this.users = users;
	}
		
}
